package com.lanou3g.zjl.chating.home.friends;

import java.util.Comparator;

/**
 * 
 * @author Mr.Z
 */
public class PinyinComparator implements Comparator<FriendsInfo> {

	public int compare(FriendsInfo o1, FriendsInfo o2) {
		if(o1.getSortLetter().equals("@") || o2.getSortLetter().equals("#")) {
			return -1;
		} else if(o1.getSortLetter().equals("#") || o2.getSortLetter().equals("@")) {
			return 1;
		} else {
			return o1.getSortLetter().compareTo(o2.getSortLetter());
		}
	}

}
